/**
 * Created with IntelliJ IDEA.
 * Description:BOKD
 * User: 34321
 * Date: 2024-11-03
 * Time: 8:46
 */
public class ClassSchedule{

    public int forenoom;
    public int afternoom;
    public String night;

    public ClassSchedule(){
//        System.out.println("Xiaoxin");注释取消掉，会报错
        this(4,2,"职业生涯规划");

//        this.forenoom = 4;
//        this.afternoom = 2;
//        this.night = "linear algebra";
    }

    public ClassSchedule(int forenoom,int afternoom,String night){
        this.forenoom = 4;
        this.afternoom = 2;
        this.night = "职业生涯规划";
    }

    public void setClass(int forenoom,int afternoom,String night){
        this.forenoom = 4;
        this.afternoom = 2;
        this.night = "linear algebra";
    }

    public void printClass(){
        System.out.println("forenoom:"+this.forenoom+"\nafternoom:"+this.afternoom+"\nnight:"+this.night);
    }

    public static void main1(String[] args) {
        ClassSchedule class1  = new ClassSchedule();
        class1.setClass(4,2,"linear algebra");
        class1.printClass();
    }
}
